package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
*  ：复权行情通过
* @author: codesmith
**/
public interface ProBarBean extends BaseBean {
    String API_NAME = "pro_bar";
    
    interface Fields {
    }
    
    interface Params {
        ts_code ts_code = new ts_code();
        /*
        * 证券代码
        */
        class ts_code extends BaseRequestParam {
            { key = "ts_code"; }
        }
        start_date start_date = new start_date();
        /*
        * 开始日期 (格式：YYYYMMDD)
        */
        class start_date extends BaseRequestParam {
            { key = "start_date"; }
        }
        end_date end_date = new end_date();
        /*
        * 结束日期 (格式：YYYYMMDD)
        */
        class end_date extends BaseRequestParam {
            { key = "end_date"; }
        }
        asset asset = new asset();
        /*
        * 资产类别：E股票 I沪深指数 C数字货币 F期货 FD基金 O期权，默认E
        */
        class asset extends BaseRequestParam {
            { key = "asset"; }
        }
        adj adj = new adj();
        /*
        * 复权类型(只针对股票)：None未复权 qfq前复权 hfq后复权 , 默认None
        */
        class adj extends BaseRequestParam {
            { key = "adj"; }
        }
        freq freq = new freq();
        /*
        * 数据频度 ：1MIN表示1分钟（1/5/15/30/60分钟） D日线 ，默认D
        */
        class freq extends BaseRequestParam {
            { key = "freq"; }
        }
        ma ma = new ma();
        /*
        * 均线，支持任意周期的均价和均量，输入任意合理int数值
        */
        class ma extends BaseRequestParam {
            { key = "ma"; }
        }
        api api = new api();
        /*
        * pro版api对象，如果初始化了set_token，此参数可以不需要
        */
        class api extends BaseRequestParam {
            { key = "api"; }
        }
        factors factors = new factors();
        /*
        * 股票因子（asset=&#39;E&#39;有效）支持 tor换手率 vr量比
        */
        class factors extends BaseRequestParam {
            { key = "factors"; }
        }
        adjfactor adjfactor = new adjfactor();
        /*
        * 复权因子，在复权数据时，如果此参数为True，返回的数据中则带复权因子，默认为False。 该功能从1.2.33版本开始生效
        */
        class adjfactor extends BaseRequestParam {
            { key = "adjfactor"; }
        }
    }
}